GETPASS

Section: MINTLIB LIBRARY FUNCTIONS (3)
Updated: 3 March 1993
Index Return to Main Contents
 

NAME

getpass - read a password  

SYNOPSIS

#include <unistd.h>

char *getpass(const char *prompt);
 

DESCRIPTION

getpass reads up to a newline or EOF from standard input (TOS) or /dev/tty (MiNT), after prompting on the standard error output with the null-terminated string prompt and disabling echoing. A pointer is returned to a null-terminated string of at most PASS_MAX characters. PASS_MAX is defined in <limits.h> and has curently been set to 8.  

WARNING

getpass uses <stdio.h>, which may cause an unexpected increase in the size of a program not otherwise using standard I/O. The return value points to static data whose contents is overwritten by each call.
 

Index

NAME
SYNOPSIS
DESCRIPTION
WARNING

This document was created by man2html, using the manual pages.
Time: 11:14:41 GMT, June 22, 2025